Package-level declarations

Types

Link copied to clipboard
data class AreaStyle(val brush: Brush, val alpha: Float = 1.0f, val colorFilter: ColorFilter? = null, val blendMode: BlendMode = DrawScope.DefaultBlendMode)

Provides styling for areas.

Link copied to clipboard
data class Axis(val color: Color = Color.LightGray, val majorTickSize: Dp = 7.dp, val minorTickSize: Dp = 3.dp, val lineThickness: Dp = 0.dp, val tickPosition: TickPosition = TickPosition.Outside, val xyGraphTickPosition: TickPosition = TickPosition.Outside, val majorGridlineStyle: LineStyle? = LineStyle( SolidColor(Color.LightGray), strokeWidth = 0.dp ), val minorGridlineStyle: LineStyle? = LineStyle( SolidColor(Color.LightGray), strokeWidth = 0.dp ))

Theme properties for Axes and grid lines.

Link copied to clipboard

Contains functions to access the current theme values provided at the call site's position in the hierarchy.

Link copied to clipboard
data class LineStyle(val brush: Brush, val strokeWidth: Dp = 0.dp, val pathEffect: PathEffect? = null, val alpha: Float = 1.0f, val colorFilter: ColorFilter? = null, val blendMode: BlendMode = DrawScope.DefaultBlendMode)

Provides styling for lines.

Link copied to clipboard
data class Sizes(val symbol: Dp = 8.dp, val gap: Dp = 8.dp, val barWidth: Float = 0.8f)

Theme sizes.

Functions

Link copied to clipboard
fun KoalaPlotTheme(sizes: Sizes = KoalaPlotTheme.sizes, animationSpec: AnimationSpec<Float> = KoalaPlotTheme.animationSpec, axis: Axis = KoalaPlotTheme.axis, legendLocation: LegendLocation = KoalaPlotTheme.legendLocation, content: @Composable () -> Unit)

KiwkCharts components use values provided here when retrieving default values.